class Address {
  static const String appHost = "http://192.168.20.63:8080";
  // static const String appHost = "http://111.229.100.15";

  static register() {
    return "$appHost/api/v1/user/register";
  }

  static login() {
    return "$appHost/api/v1/user/login";
  }

  static userInfo() {
    return "$appHost/api/v1/user/info";
  }

  static const SERVICE_API = 'https://vip.88-spa.com:8443/v1';
  static const HOME_API = "$SERVICE_API/home-list";
  static const HOME_DETAIL_API = "$SERVICE_API/vod-details";
  static const HOT_UPDATE_API = "$SERVICE_API/map";
  static const RANK_WEEK_API = "$SERVICE_API/rank-list?cate=vod_hits_week";
  static const RANK_MONTH_API = "$SERVICE_API/rank-list?cate=vod_hits_month";
  static const RANK_TOTAL_API = "$SERVICE_API/rank-list?cate=vod_hits";
  static const MOVIE_API = "$SERVICE_API/list-by-type?type=1";
  static const TELEPLAY_API = "$SERVICE_API/list-by-type?type=2";
  static const SHOW_API = "$SERVICE_API/list-by-type?type=3";
  static const CARTOON_API = "$SERVICE_API/list-by-type?type=4";
  static const SELECT_CONDITION_API = "$SERVICE_API/vod-list-options";
  static const CONDITION_SEARCH_API = "$SERVICE_API/vod-list?";
  static const TXT_AUTO_SEARCH_API = "$SERVICE_API/auto-search?";
  static const TXT_NORMAL_SEARCH_API = "$SERVICE_API/search?";

  static const GANK_API = "https://gank.io";

  static hotCategoryApi({String hotType, String category, int count}) {
    return "$GANK_API/api/v2/hot/$hotType/category/$category/count/$count";
  }

  static categoryApi({String type, String category, int page, int count}) {
    return "$GANK_API/api/v2/data/category/$category/type/$type/page/$page/count/$count";
  }

  static const FUND_API = "https://fundmobapi.eastmoney.com";

  static getFundMNFInfo({String fcodes}) {
    return "https://fundmobapi.eastmoney.com/FundMNewApi/FundMNFInfo?pageIndex=1&pageSize=999&appType=ttjj&product=EFund&plat=Android&deviceid=9e16077fca2fcr78ep0ltn98&Version=1&Fcodes=$fcodes";
  }

  //股票实时数据
  static getSharesJs({String code}) {
    return "https://hq.sinajs.cn/list=$code";
  }
}
